/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.adv.entity;

import com.thinkgem.jeesite.modules.hk.adv.entity.HkAllAdv;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 城市广告标签Entity
 * @author 罗天文
 * @version 2018-06-08
 */
public class HkCityAdvTag extends DataEntity<HkCityAdvTag> {
	
	private static final long serialVersionUID = 1L;
	private HkAllAdv city;		// 城市广告id
	private String tagId;		// 标签id
	private String tagType;		// 标签类型
	private String tagName;		// 标签名称
	
	public HkCityAdvTag() {
		super();
	}

	public HkCityAdvTag(String id){
		super(id);
	}

	@NotNull(message="城市广告id不能为空")
	public HkAllAdv getCity() {
		return city;
	}

	public void setCity(HkAllAdv city) {
		this.city = city;
	}
	
	@Length(min=1, max=32, message="标签id长度必须介于 1 和 32 之间")
	public String getTagId() {
		return tagId;
	}

	public void setTagId(String tagId) {
		this.tagId = tagId;
	}
	
	@Length(min=0, max=1, message="标签类型长度必须介于 0 和 1 之间")
	public String getTagType() {
		return tagType;
	}

	public void setTagType(String tagType) {
		this.tagType = tagType;
	}
	
	@Length(min=1, max=100, message="标签名称长度必须介于 1 和 100 之间")
	public String getTagName() {
		return tagName;
	}

	public void setTagName(String tagName) {
		this.tagName = tagName;
	}
	
}